StillConnecting Property

       

Returns a value that indicates if the connection has been established.

Syntax

object.StillConnecting

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Return Values

The StillConnecting property return values are:

Value Description
True The connection is being made asynchronously but has not been established.
False The connection has been established.

Remarks

This property works very similarly to the StillExecuting property, except that it is True while an asynchronous connection to the server is being performed. This property is set to False again after the connection has been established.

All method and property access of the connection object (with the exception of this property and the Cancel method) will result in trappable errors while an asynchronous connection is in progress.